Documentation for class font

Inherits from 	basic_object 

Properties declared in font 

Class Methods declared in font 
	new(name, size) 

Methods declared in font 
	any 
		get_width_of(string) 
		point_size 

Class 
#begin_class
font 
The class font is a sub-class of the class basic_object. 
Font objects specify a font type and a font size, Font objects are used to set the font of text in objects like buttons and text-fields.
Ex:
The font object with the font type Helvetica and font size 12 is written:
{font helvetica_12}
The font object with the font type Times Bold and font size 10 is written:
{font times_bold_10}
To set the font of a button to the font type Times Bold and the font size 10 you type:
{button my_button}:set_font({font times_bold_10})
#end_class

Properties 

Methods 

#begin_method
get_width_of(string) 
Returns the width of string if you printed it using the the font.
#end_method

#begin_method
point_size 
Returns the point size of the font.
#end_method

Class Methods 

#begin_class_method
new(name, size) 
Returns a new font object with the name name and point size size. If the method cannot create the new font object it returns nil.
#end_class_method